package com.lhkj.ct.meta.modules.statements.service.impl;

import com.lhkj.ct.base.model.dto.PageQuery;
import com.lhkj.ct.meta.admin.model.entity.TblEmployee;
import com.lhkj.ct.meta.modules.statements.mapper.StatisticsMapper;
import com.lhkj.ct.meta.modules.psychology.model.entity.TblScalePsyRecord;
import com.lhkj.ct.meta.modules.psychology.model.vo.AppointStatisticsVo;
import com.lhkj.ct.meta.modules.psychology.model.vo.PsyStatisticsVo;
import com.lhkj.ct.meta.modules.psychology.model.vo.WorkloadStatisticsVo;
import com.lhkj.ct.meta.modules.statements.service.StatisticsService;
import com.lhkj.ct.meta.modules.scheduling.model.entity.TblScheAppoint;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
  * <p>
  *     描述：统计报表
  * </p>
  */
@Service
public class StatisticsServiceImpl implements StatisticsService {

    @Resource
    private StatisticsMapper statisticsMapper;

    /**
     *     测验统计
     */
    @Override
    public List<PsyStatisticsVo> psyStatistics(TblScalePsyRecord psyRecord, PageQuery pageQuery) {
        return statisticsMapper.psyStatistics(psyRecord, pageQuery);
    }

    /**
     * 预约统计
     */
    @Override
    public List<AppointStatisticsVo> appointStatistics(TblScheAppoint entity, PageQuery pageQuery) {
        return statisticsMapper.appointStatistics(entity, pageQuery);
    }

    /**
     * 工作量统计
     */
    @Override
    public List<WorkloadStatisticsVo> workloadStatistics(TblEmployee entity, PageQuery pageQuery) {
        return statisticsMapper.workloadStatistics(entity, pageQuery);
    }
}
